package com.bdzl.admin.service.data.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.beans.Transient;
import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.EnterpriseHolderDao;
import com.bdzl.pub.entity.data.EnterpriseHolderDO;
import com.bdzl.admin.service.data.EnterpriseHolderService;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor = Exception.class)
public class EnterpriseHolderServiceImpl implements EnterpriseHolderService {
	@Autowired
	private EnterpriseHolderDao enterpriseHolderDao;
	
	@Override
	public EnterpriseHolderDO get(Integer holderId){
		return enterpriseHolderDao.get(holderId);
	}
	
	@Override
	public List<EnterpriseHolderDO> list(Map<String, Object> map){
		return enterpriseHolderDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return enterpriseHolderDao.count(map);
	}
	
	@Override
	public int save(EnterpriseHolderDO enterpriseHolder){
		return enterpriseHolderDao.save(enterpriseHolder);
	}
	
	@Override
	public int update(EnterpriseHolderDO enterpriseHolder){
		return enterpriseHolderDao.update(enterpriseHolder);
	}
	
	@Override
	public int remove(Integer holderId){
		return enterpriseHolderDao.remove(holderId);
	}
	
	@Override
	public int batchRemove(Integer[] holderIds){
		return enterpriseHolderDao.batchRemove(holderIds);
	}
	
}
